<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>神经猫</title>
	<script type="text/javascript" src="easeljs.min.js"></script>
	<script>
		function Circle(){
			createjs.Shape.call(this);
			this.setType = function(type){
				this.Type = type;
				switch(type){
					case Circle.unused : this.setColor('#bbb',25);break;
					case Circle.used : this.setColor('#FF6600',25);break;
					case Circle.cat : this.setColor('#00f',25);break;
				}
			}
			this.setColor = function(color,radius){
				this.graphics.beginFill(color);
				this.graphics.drawCircle(0,0,radius);
				this.graphics.endFill();
			}
			this.getType = function(){
				return this.type;
			}
			this.setType(1);
		}
		Circle.unused = 1;
		Circle.used = 2;
		Circle.cat = 3;
		Circle.prototype = new createjs.Shape();
	</script>
</head>
<body>
	<canvas width="800px" height="800px" id="playBoard"></canvas>

	<script type="text/javascript" src="神经猫.js"></script>
</body>
</html>